<% page_title = "Checkout" %>
<%= error_messages_for("order") %>
<%= render_component(:action => "display_cart",
                     :params => {:context => :checkout}) %>
<%= start_form_tag(:action => "save_order") %>
<table>
  <tr>
    <td>Name:</td>
    <td><%= text_field("order","name","size"=>40) %></td>
  </tr>
  <tr>
    <td>Email:</td>
    <td><%= text_field("order","email","size"=>40) %></td>
  </tr>
  <tr>
    <td>Address:</td>
    <td>
      <%= text_area("order","address","cols"=>40,"rows"=>5) %>
    </td>
  <tr>
    <td>Pay Using:</td>
    <td><%=
      options = [["Select a payment option", ""]] + Order::PAYMENT_TYPES
      select("order","pay_type",options)
      %>
    </td>
  </tr>
  <tr>
    <td></td>
    <td><%=submit_tag(" CHECKOUT ") %></td>
  </tr>
</table>
<%= end_form_tag %>
